/**
 * 项目名称:账务业务层类
 *
 * @Author: 夏国倩
 * @Date: 2023/10/17 10:16
 * @Copyright
 */
package itSystemCase6.service;
import itSystemCase6.dao.ZhangWuDao;
import itSystemCase6.domain.ZhangWuBean;
import java.util.List;
public class ZhangWuService {
    //Service都依赖dao
    private static ZhangWuDao zhangWuDao=new ZhangWuDao();

    public static List<ZhangWuBean> selectAll() {
        return zhangWuDao.selectAll();
    }

    public static List<ZhangWuBean> select(String startTim, String endTime){
        return zhangWuDao.select(startTim,endTime);
    }

    public void addZhangWu(ZhangWuBean zw) {
        zhangWuDao.addZhangWu(zw);
    }

    public void editZhangWu(int id,int hh) {
        zhangWuDao.editZhangWu(id,hh);
    }

    public void deleteZhangWu(int id) {
        zhangWuDao.deleteZhangWu(id);
    }
}
